PKG_CONF=`pkg-config --cflags --libs libpanelapplet-2.0`

all:
	gcc $(PKG_CONF) -o acerwificontroller acerwificontroller.c

install:
	cp -v acerwificontroller /usr/lib/gnome-panel/
	cp -v AcerWifiController_Factory.server /usr/lib/bonobo/servers/

uninstall:
	rm -v /usr/lib/bonobo/servers/AcerWifiController_Factory.server
	rm -v /usr/lib/gnome-panel/acerwificontroller
	
clean:
	rm -f *.out *.o acerwificontroller